#!/usr/bin/python
# coding=utf-8
from myapp import create_app
from myapp.config import app_config

import myapp.student
import myapp.book
import myapp.teacher

profile = 'dev'
app, api = create_app(p_config_obj=app_config[profile])

myapp.student.create_module(p_app=app, p_api=api)
myapp.book.create_module(p_app=app, p_api=api)
myapp.teacher.create_module(p_app=app, p_api=api)

if __name__ == '__main__':
    app.run(debug=True)
